import request from '@/utils/request'

// 请求列表 错误码 402001
export function getbuildingList(params) {
  return request({
    url: `/parkManage/building/getList`,
    method: "get",
    params,
  });
}

// 新增 错误码 402002
export function addbuilding(data) {
  return request({
    url: `/parkManage/building/add`,
    method: "post",
    data,
  });
}

// 修改 错误码 402003
export function editbuilding(data) {
  return request({
    url: `/parkManage/building/edit`,
    method: "put",
    data,
  });
}


// 详情 错误码 402004
export function getbuildingDetail(id) {
  return request({
    url: `/parkManage/building/${id}`,
    method: "get",
  });
}

// 删除 错误码 402005
export function deleteBuilding(id) {
  return request({
    url: `/parkManage/building/delete/${id}`,
    method: "delete",
  });
}
